package cn.peng.stu4teach.pages.funcs;

import android.os.Bundle;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import androidx.databinding.library.baseAdapters.BR;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;

import cn.peng.stu4teach.R;
import cn.peng.stu4teach.databinding.ActivityAllFuncsBinding;
import cn.peng.stu4teach.util.base.BaseActivity;

/**
 * 全部功能页面
 */
public class AllFuncsActivity extends BaseActivity<ActivityAllFuncsBinding,AllFuncsVm> {
    @Override
    public int setLayoutId () {
        return R.layout.activity_all_funcs;
    }

    @Override
    public int setBrVmId () {
        return BR.vm;
    }

    @Override
    public AllFuncsVm setBrVm () {
        return new ViewModelProvider(this).get(AllFuncsVm.class);
    }

    @Override
    public void initData () {
        super.initData();
        mVM.init();
        mVM.initRv(mBinding.rvFuncCommon,"comm");
        mVM.initRv(mBinding.rvFuncAll,"all");
    }
}